<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8"/>
	<meta name="keywords" content="Edit settings, edit, edit style"/>
	<link rel="stylesheet" href="../../Shared/sty/standard.css"/>
	<script defer src="../../Shared/js/toc.js"></script>
	
	<title>Change Edit settings in CotEditor on Mac</title>
</head>

<body>
<a name="settings_edit"></a>

<h1>Change Edit settings in CotEditor on Mac</h1>

<p>In the CotEditor app <img class="appicon" srcset="../../Shared/gfx/icon_32x32@2x.png 2x" alt=""/> on your Mac, use Edit settings to choose how the editor behaves while editing.</p>

<p>To change these settings, choose CotEditor &gt; Settings, then click Edit.</p>


<table class="settings">
<caption>Indentation</caption>
<thead>
	<tr><th>Option</th><th>Description</th></tr>
</thead>

<tbody>
	<tr>
		<th>Prefer using spaces/tabs</th>
		<td>Set the character used for indentation and for the Tab key. Choose one of the following:
			<ul>
				<li><em>Spaces</em>: Insert multiple space characters based on the indent width.</li>
				<li><em>Tabs</em>: Insert a single tab character.</li>
			</ul>
		</td>
	</tr>

	<tr>
		<th>Indent width</th>
		<td>Set the number of spaces that a tab character represents.</td>
	</tr>

	<tr>
		<th>Detect indent style on document opening</th>
		<td>Detect whether the opened document uses spaces or tabs for indentation. If the style can be detected, CotEditor automatically adjusts whether typing the Tab key expands to spaces. If there are not enough indented lines to detect the style, the default setting is used.</td>
	</tr>

	<tr>
		<th>Automatically indent while typing</th>
		<td>Automatically indent new lines when you press <kbd>Return</kbd> or <kbd>Enter</kbd>. The new line begins at the same indentation level as the previous line.</td>
	</tr>

	<tr>
		<th>Indent selection with Tab key</th>
		<td>When you press the <kbd>Tab</kbd> key while text is selected, the selected lines are indented instead of being replaced with whitespace. When you press <kbd>Tab</kbd>-<kbd>Shift</kbd> keys, the selected lines are outdented.</td>
	</tr>
</tbody>
</table>


<table class="settings">
<caption>Whitespace</caption>
<thead>
	<tr><th>Option</th><th>Description</th></tr>
</thead>

<tbody>
	<tr>
		<th>Automatically trim trailing whitespace</th>
		<td>Remove whitespace at the end of lines automatically while typing.</td>
	</tr>

	<tr>
		<th>Including whitespace-only lines</th>
		<td>Remove all whitespace in lines that contain only whitespace.</td>
	</tr>
</tbody>
</table>


<table class="settings">
<caption>Comment</caption>
<thead>
	<tr><th>Option</th><th>Description</th></tr>
</thead>

<tbody>
	<tr>
		<th>Insert comment delimiters after indent</th>
		<td>When commenting out text, place the comment delimiter after the lowest indentation level within the selection.</td>
	</tr>

	<tr>
		<th>Append a space to comment delimiter</th>
		<td>When commenting out text, insert a space between the comment delimiter and the commented text.</td>
	</tr>
</tbody>
</table>


<table class="settings">
<caption>Content parse</caption>
<thead>
	<tr><th>Option</th><th>Description</th></tr>
</thead>

<tbody>
	<tr>
		<th>Link URL in document</th>
		<td>Highlight URLs in the document and make them clickable.</td>
	</tr>
	
	<tr>
		<th>Highlight matching braces</th>
		<td>Briefly highlight the matching brace when the insertion point moves across one of a pair of braces such as “()”, “[]”, or “{}”.</td>
	</tr>
	
	<tr>
		<th>Highlight instances of selected text</th>
		<td>Highlight all instances of the selected text in the editor after the specified delay. Highlighting occurs only when the selected text is a complete word.</td>
	</tr>
</tbody>
</table>


<section id="cf">
<h2>See also</h2>
<ul>
	<li><a href="settings.html">Change settings in CotEditor on Mac</a></li>
</ul>
</section>

</body>
</html>
